package com.fjnu.service;

import com.fjnu.annotation.ExceptionGlobalCatch;
import com.fjnu.dto.UserConditionDto;
import com.fjnu.entity.User;
import com.fjnu.vo.PageResult;

import java.util.List;

@ExceptionGlobalCatch
public interface UserService {
    User queryByName(String username);
    int register(User user);
    PageResult<User> queryUsers(UserConditionDto userCondition, Integer pageNum, Integer pageSize);
    void addAssignRole(String userId, List<Integer> roleIds);
}